<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%@page import="com.bringway.framework.util.DateUtils"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>红点e贷服务管理系统</title>
<%
	SysUserDetails sysUserDetails = (SysUserDetails) SecurityContextHolder.getContext().getAuthentication()
			.getPrincipal();
	String gyh = "", username = "", roleId = "", roleName = "";
	if (null != sysUserDetails) {
		gyh = sysUserDetails.getGyh();
		username = sysUserDetails.getUsername();
		roleId = sysUserDetails.getRoleId();
		roleName = sysUserDetails.getRoleName();
	}
	System.out.println("gyh : " + gyh);
	System.out.println("username : " + username);
	System.out.println("roleId : " + roleId);
	System.out.println("roleName : " + roleName);
%>
<jsp:include page="../../global/assets_common.jsp" />
<!--首页 自定义 样式表-->
<link rel="stylesheet" href="${basePath}/global/css/assets/index.css" />
<script type="text/javascript">
var baseUrl = '<%=request.getContextPath()%>';
var gyh = '<%=gyh%>';
var username = '<%=username%>';
var roleId = '<%=roleId%>';
var roleName = '<%=roleName%>';
var nowDate = '<%=DateUtils.getCurrentDataStr()%>';
</script>
</head>
<body>
	<!--顶部 导航栏 开始-->
	<nav class="navbar navbar-default navbar-static-top" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<a class="navbar-brand" href="#"> <img alt="LOGO"
				src="${basePath}/global/images/asset/LOGO.png" />
			</a> <span class="navbar_span">云服务管理系统</span>
			<div class="btn-group nav navbar-right">
			<button type="button" class="btn btn-default dropdown-toggle"
				data-toggle="dropdown">
				<span>欢迎您,<%=gyh%></span> <span class="caret"></span>
			</button>
			<ul class="dropdown-menu" role="menu">
				<li><a href="JavaScript:onLoginOut()">退出</a></li>
				<li><a href="JavaScript:changePassword()">修改密码</a></li>
				<li><a href="${basePath}/pages/main/main.jsp">回到老版系统</a></li>
			</ul>
		</div>
		</div>
		
	</div>
	</nav>
	<!--顶部 导航栏 结束-->
	<div class="container-fluid">
		<!--左边 侧边栏 开始-->
		<div class="main_left_wap">
		<div class="main_left" id="tree_-1"></div>
		</div>
		<!--左边 侧边栏 结束-->
		<!--右边 主体部分 开始-->
		<div class="main_right" id="main_right">
			<ul id="tabs">
				<li><a href="#tabs_home">主页</a></li>
			</ul>
			<div id="tabs_home" style="padding: 20px 0px 0px 20px;">
				<strong style="font-size: 22px">欢迎使用红点e贷云服务管理系统</strong>
			</div>
		</div>
		<!--右边 主体部分 结束-->
		<div id="hidden"></div>
		<div id="dialog_alert" title="提示" class="ui-helper-hidden"></div>
		<!--修改模态框 开始-->
		<div id="dialog_changePassword" title="修改密码"
			class="row ui-helper-hidden">
			<form class="form" id="form_update">
				<div class="form-group">
					<label for="oldPwd" class="control-label col-sm-4">旧密码:</label>
					<div class="col-sm-8">
						<input type="password" id="oldPwd" name="oldPassword"
							class="form-control" />
					</div>
				</div>

				<div class="form-group">
					<label for="newPwd" class="control-label col-sm-4">新密码:</label>
					<div class="col-sm-8">
						<input type="password" id="newPwd" name="USER_PASSWORD"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label for="confirmPwd" class="control-label col-sm-4">确认密码:</label>
					<div class="col-sm-8">
						<input type="password" id="confirmPwd" name="confirmPassword"
							class="form-control" />
					</div>
				</div>
				<input type="hidden" id="gyh" name="gyh" value="<%=gyh%>" />
			</form>
		</div>
		<!--修改模态框 结束-->
	</div>
	<script src="${basePath}/global/js/assets/index.js" type=""></script>
</body>
</html>